package com.bbm.service.impl;

import com.bbm.entity.User;
import com.bbm.entity.vo.ResponseResult;
import com.bbm.mapper.HouseMapper;
import com.bbm.mapper.UserMapper;
import com.bbm.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : lyj
 * @Timer : 2024/3/14
 * @Description :
 */
@Service("loginService")
public class LoginServiceImpl implements LoginService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public ResponseResult login(String username, String password) {
        User loginUser = userMapper.login(username, password);
        return ResponseResult.okResult(200, "登录成功！");
    }

    @Override
    public ResponseResult getUserInfo(String username) {
        return null;
    }

    @Override
    public ResponseResult register(User user) {
        return null;
    }

    @Override
    public ResponseResult loginAdmin(User user) {
        return ResponseResult.okResult();
    }
}
